package com.darker.yygh.order.client;

import com.atguigu.yygh.vo.order.OrderCountQueryVo;
import com.darker.yygh.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

@Repository
@FeignClient("service-order")
public interface OrderFeignClient {
    @PostMapping("/admin/order/orderInfo/inner/getCountMap")
    Map<String, Object> getCountMap(@RequestBody OrderCountQueryVo orderCountQueryVo);
    @GetMapping("/admin/order/orderInfo/oder/{oderId}")
     int getOderById(@PathVariable long oderId);
    @GetMapping("/api/order/orderInfo/auth/cancelOrder/{orderId}")
    public Result cancelOrder(@PathVariable Long orderId) ;
}
